import request from '@/utils/request'

// 查询营地服务设施记录表列表
export function listCampfacility(query) {
  return request({
    url: '/wechat/campfacility/list',
    method: 'get',
    params: query
  })
}

// 查询营地服务设施记录表详细
export function getCampfacility(cfId) {
  return request({
    url: '/wechat/campfacility/' + cfId,
    method: 'get'
  })
}

// 新增营地服务设施记录表
export function addCampfacility(data) {
  return request({
    url: '/wechat/campfacility',
    method: 'post',
    data: data
  })
}

// 修改营地服务设施记录表
export function updateCampfacility(data) {
  return request({
    url: '/wechat/campfacility',
    method: 'put',
    data: data
  })
}

// 删除营地服务设施记录表
export function delCampfacility(cfId) {
  return request({
    url: '/wechat/campfacility/' + cfId,
    method: 'delete'
  })
}
